<?php

namespace app\model;

use think\Model;

class User extends Model
{
    protected $autoWriteTimestamp = true;
    public function getsexAttr($value)
    {
        $status = [0=>'男',1=>'女'];
        return $status[$value];
    }
}